-- GENERATED SPELL FOR [Dustbelcher Shaman] --


function spell0_2718(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(8005,pUnit)
pUnit:RegisterEvent('Sorts_2718', 3000, 1)
end

function spell1_2718(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2718', 3000, 1)
end

function Sorts_2718(pUnit, Event)
local choix_sorts_2718 = math.random(0, 1)
if choix_sorts_2718 == 0 then
pUnit:RegisterEvent('spell0_2718', 1, 1)
end
if choix_sorts_2718 == 1 then
pUnit:RegisterEvent('spell1_2718', 1, 1)
end
end

function mob2718_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2718', math.random(1500, 3000), 1)
end

function mob2718_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2718_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2718_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2718, 1, 'mob2718_Action')
RegisterUnitEvent(2718, 2, 'mob2718_Leave')
RegisterUnitEvent(2718, 3, 'mob2718_Kill')
RegisterUnitEvent(2718, 4, 'mob2718_Die')
